package com.lebang.mapper;

import com.lebang.domain.MemberEarnLookRecord;
import com.lebang.example.MemberEarnLookRecordExample;
import com.lebang.model.cences.NewsJokeRecordCount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * MemberEarnLookRecordMapper继承基类
 */
@Mapper
public interface MemberEarnLookRecordMapper extends MyBatisBaseDao<MemberEarnLookRecord, Long, MemberEarnLookRecordExample> {

    Integer countByInt(@Param("starInt") int starInt,
                       @Param("endInt") int endInt,
                       @Param("appStore") String appStore,
                       @Param("star") LocalDateTime star,
                       @Param("end") LocalDateTime end,
                       @Param("configId") Integer configId, @Param("isNewMember") Integer isNewMember);

    BigDecimal selectMOney(@Param("appStore") String appStore,
                           @Param("star") LocalDateTime star,
                           @Param("end") LocalDateTime end,
                           @Param("configId") Integer configId, @Param("isNewMember") Integer isNewMember);

    int countByDouble(@Param("appStore") String appStore,
                      @Param("star") LocalDateTime star,
                      @Param("end") LocalDateTime end,
                      @Param("configId") Integer configId, @Param("isNewMember") Integer isNewMember);

    List<NewsJokeRecordCount> countByDate(@Param("star") LocalDateTime star,@Param("end")  LocalDateTime end);

    List<NewsJokeRecordCount> countMoneyByDate(@Param("star") LocalDateTime star,@Param("end")  LocalDateTime end);

    List<NewsJokeRecordCount> countDoublePointByDate(@Param("star") LocalDateTime star,@Param("end")  LocalDateTime end);
}